<?php

/**
 * TomatoCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@tomatocms.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2009-2010 TIG Corporation (http://www.tig.vn)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @version 	$Id: Widget.php 3980 2010-07-25 15:59:24Z huuphuoc $
 * @since		2.0.0
 */
class Utility_Widgets_Weather_Widget extends Tomato_Widget {

    protected function _prepareShow() {
        $place = $this->_request->getParam('place');
        $code = $this->_request->getParam('code');
        $unit = $this->_request->getParam('unit');
        $this->_view->assign('place', $place);
        $this->_view->assign('code', $code);
        $this->_view->assign('unit', $unit);
    }

    protected function _prepareConfig() {
        $target = $this->_request->getParam('target');
        $this->_view->assign('target', $target);
    }

}
